package com.egg.mall.entity.spu;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 商品SPU属性表
 * </p>
 *
 * @author east
 * @since 2022-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "mall_spu_attribute")
@ApiModel(value = "SpuAttribute对象", description = "商品SPU属性表")
public class SpuAttribute extends BaseEntity {


    @ApiModelProperty(value = "SPU ID")
    @TableField(value = "spu_id")
    private Long spuId;

    @ApiModelProperty(value = "类型(1:规格,2:属性)")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "属性值")
    @TableField(value = "value")
    private String value;

    @ApiModelProperty(value = "图片地址")
    @TableField(value = "pic_url")
    private String picUrl;


}
